<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><PHP>echo getSysTitle();</PHP></title>
<script src="__JS__/jquery-1.6.2.min.js"></script>
<script src="__JS__/jquery.form.js"></script>
<link rel="stylesheet" href="__JS__/validfrom/css/style.css" type="text/css" media="all" />
<link href="__JS__/validfrom/css/demo.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="__JS__/validfrom/js/Validform_v5.2_min.js"></script>
<style type="text/css">
body{background-color:#FFF}

</style>
<script>
$(document).ready(function(){
	//屏蔽退格键 使整个页面后退
	$(document).keydown(function (e) {  
        var doPrevent; 
        if (e.keyCode == 8) {  
            var d = e.srcElement || e.target;  
            if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') {  
                doPrevent = d.readOnly || d.disabled;  
           }  
            else  
                doPrevent = true;  
        }  
        else  
            doPrevent = false;  
        if (doPrevent){  
            e.preventDefault();  
        }else{
        	e.keyCode=0;
        	e.returnValue=false;
        }
    });  
	$(".registerform").Validform({
		tiptype:function(msg,o,cssctl){
			if(!o.obj.is("form")){
				var objtip=o.obj.parents("td").next().find(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}

		}
	});
	$('#roleForm').submit(function(){
		$(this).ajaxSubmit(options); 
		return false;
	});
	//$('#roleForm').ajaxSubmit(options); 
	var options={
			 beforeSubmit:  showRequest,  
			 success:       showResponse  
	};

});
function showRequest(formData, jqForm, options) { 
	
	return true;
	
}
function showResponse(rs, statusText, xhr, $form)  { 
	if(rs=="y"){
		alert("退回成功");
		parent.parent.window.location.reload();
	}else{
		alert("退回失败");
	}
}
</script>
</head>
<body>
<div  style="padding-top:15px;">
<form action="?g=Admin&m=Order&a=reject" method="post" id="roleForm" class="registerform"  >
<fieldset>
	<table border="0" cellspacing="0" cellpadding="0" style="margin-left:10px;">
		<tr>
			
           
            <td style="">备　　注：</td>
            <td style=""><textarea rows="3" cols="60" id="O_CS_MEMO_EXT" name="O_CS_MEMO_EXT" style="width:320px;">{$O_CS_MEMO_EXT}</textarea></td>
            <td><div class="Validform_checktip">说明(200字以内)</div></td>
		</tr>
		<tr>
			<td colspan="3" style="text-align:center">
					<input type="hidden" name="O_ID" value="{$O_ID}">
					<input type="hidden" name="op" value="1">
    				<input style="width:60px;height:30px;text-align:center;padding:2px 4px;"  type="submit" value="确认退回" />
			</td>
		</tr>
	</table>
</fieldset>
</form>
</div>
</body>

</html>